package com.example.tasks

import java.io.File

/**
 * 不建议使用追加的方式：xml里的&#8230;读到内存中会再次变成省略号。导致再次警告，还是生成xml拷贝，还可以保持原本的格式
 */
fun main() {
    val xmlPath = "/Users/zhengjianxin/Downloads/Soreal app 6-1 extra strings_13L.xlsx"
    val projectPath = "/Users/zhengjianxin/AndroidStudioProjects/AiDraw"// "/Users/zhengjianxin/StudioProjects/avatarDev"

    val resourcePath = "$projectPath/app/src/main/res"//"$projectPath/avatar/src/main/res"
    Excel2Xml().let {
        val source = it.readFromExcel(xmlPath)
        it.writeData2Xml(source, resourcePath, true)
    }


}


